package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 公立校
 * </p>
 *
 * @author daiwei
 * @since 2019-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_paper_template")
public class PaperTemplate extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "模板名称不能为空")
    private String name;

    private String subjectCode;

    private String subjectName;

    /**
     * 模板类型 1:a4,2：8k
     */
    private Integer type;

    /**
     * 模板路径
     */
    private String templatePath;

    private Integer status;

    @TableField(exist = false)
    private List<Dictionary> subjects;
}
